import request from '@/utils/request'

export function getListPage(params) {
  return request({
    url: '/umc/user/listPage',
    method: 'post',
    data: params
  })
}

export function deleteUser(params) {
  return request({
    url: '/umc/user/delete/' + params,
    method: 'post'
  })
}

export function enableUser(params) {
  return request({
    url: '/umc/user/enable/' + params,
    method: 'post'
  })
}

export function disableUser(params) {
  return request({
    url: '/umc/user/disable/' + params,
    method: 'post'
  })
}

export function modifyUser(params) {
  return request({
    url: '/umc/user/modifyUser',
    method: 'post',
    data: params
  })
}

export function saveUser(params) {
  return request({
    url: '/umc/user/saveUserInfo',
    method: 'post',
    data: params
  })
}

export function checkUserName(params) {
  return request({
    url: '/umc/user/checkUserName',
    method: 'post',
    data: params
  })
}

